##################################################################
# File : /lua/ruleinit.lua
# Description : This is the minimal setup required to load the game rules.
# Author : GPG
##################################################################

function IsSim()
    return false
end

function IsUser()
    return false
end

function IsFrontEnd()
    return false
end

function IsRuleInit()
    return true
end

function IsEditor()
    return false
end

# Set up global diskwatch table (you can add callbacks to it to be notified of disk changes)
__diskwatch = {}

# Do global init
__blueprints = {}

doscript '/lua/system/config.lua'
doscript '/lua/system/import.lua'
doscript '/lua/system/repr.lua'
doscript '/lua/system/utils.lua'

LOG('Active game mods for blueprint loading: ',repr(__active_mods))

doscript '/lua/system/Blueprints.lua'
LoadBlueprints()

InitialRegistration = true

# stuff loaded here

InitialRegistration = false